package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TOrderTrajectoryMapper;
import com.ruoyi.platform.domain.TOrderTrajectory;
import com.ruoyi.platform.service.ITOrderTrajectoryService;

/**
 * 订单行驶轨迹Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class TOrderTrajectoryServiceImpl implements ITOrderTrajectoryService 
{
    @Autowired
    private TOrderTrajectoryMapper tOrderTrajectoryMapper;

    /**
     * 查询订单行驶轨迹
     * 
     * @param trajectoryId 订单行驶轨迹主键
     * @return 订单行驶轨迹
     */
    @Override
    public TOrderTrajectory selectTOrderTrajectoryByTrajectoryId(Long trajectoryId)
    {
        return tOrderTrajectoryMapper.selectTOrderTrajectoryByTrajectoryId(trajectoryId);
    }

    /**
     * 查询订单行驶轨迹列表
     * 
     * @param tOrderTrajectory 订单行驶轨迹
     * @return 订单行驶轨迹
     */
    @Override
    public List<TOrderTrajectory> selectTOrderTrajectoryList(TOrderTrajectory tOrderTrajectory)
    {
        return tOrderTrajectoryMapper.selectTOrderTrajectoryList(tOrderTrajectory);
    }

    /**
     * 新增订单行驶轨迹
     * 
     * @param tOrderTrajectory 订单行驶轨迹
     * @return 结果
     */
    @Override
    public int insertTOrderTrajectory(TOrderTrajectory tOrderTrajectory)
    {
        return tOrderTrajectoryMapper.insertTOrderTrajectory(tOrderTrajectory);
    }

    /**
     * 修改订单行驶轨迹
     * 
     * @param tOrderTrajectory 订单行驶轨迹
     * @return 结果
     */
    @Override
    public int updateTOrderTrajectory(TOrderTrajectory tOrderTrajectory)
    {
        return tOrderTrajectoryMapper.updateTOrderTrajectory(tOrderTrajectory);
    }

    /**
     * 批量删除订单行驶轨迹
     * 
     * @param trajectoryIds 需要删除的订单行驶轨迹主键
     * @return 结果
     */
    @Override
    public int deleteTOrderTrajectoryByTrajectoryIds(Long[] trajectoryIds)
    {
        return tOrderTrajectoryMapper.deleteTOrderTrajectoryByTrajectoryIds(trajectoryIds);
    }

    /**
     * 删除订单行驶轨迹信息
     * 
     * @param trajectoryId 订单行驶轨迹主键
     * @return 结果
     */
    @Override
    public int deleteTOrderTrajectoryByTrajectoryId(Long trajectoryId)
    {
        return tOrderTrajectoryMapper.deleteTOrderTrajectoryByTrajectoryId(trajectoryId);
    }
}
